package psnl.bingo.bgtool.model.util;

public class ComputeLogic {
    public static ComputeLogic clObj = new ComputeLogic();

    public boolean logicEq(int param, int stand) {
        return param == stand;
    }
    public boolean logicEq(String param, String stand) {
        return (param+"").equals(stand+"");
    }

    public boolean logicBig(int param, int stand) {
        return param > stand;
    }
    public boolean logicBig(String param, String stand) {
        return (param+"").compareTo(stand+"") > 0;
    }

    public boolean logicBigEq(int param, int stand) {
        return param >= stand;
    }
    public boolean logicBigEq(String param, String stand) {
        return (param+"").compareTo(stand+"") >= 0;
    }

    public boolean logicLit(int param, int stand) {
        return param < stand;
    }
    public boolean logicLit(String param, String stand) {
        return (param+"").compareTo(stand+"") < 0;
    }

    public boolean logicLitEq(int param, int stand) {
        return param <= stand;
    }
    public boolean logicLitEq(String param, String stand) {
        return (param+"").compareTo(stand+"") <= 0;
    }

    public boolean logicStartWith(String param, String stand) {
        return (param+"").startsWith(stand+"");
    }

    public boolean logicEndsWith(String param, String stand) {
        return (param+"").endsWith(stand+"");
    }

    public boolean logicContain(String param, String stand) {
        return (param+"").contains(stand+"");
    }

    public boolean logicUnContain(String param, String stand) {
        return !(param+"").contains(stand+"");
    }
}
